import Vue from 'vue';
import App from './App.vue'
//多个页面需要用到购物车，设置为全局组件
import Car from './components/Car.vue'
import router from './router'
import assets from './assets.js';
import global from './global.js';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import infiniteScroll from 'vue-infinite-scroll'//无限加载插件（用于指令）

import store from './store.js';

Vue.component('Car',Car);

//表示在打包时不用显示提示信息
Vue.config.productionTip = false;

Vue.use(global);
Vue.use(assets);
Vue.use(ElementUI);
Vue.use(infiniteScroll)


new Vue({
  store,
  router,
  data:{
    cars:{}
  },
  render: function (h) { return h(App) }
}).$mount('#app')
